BenSelect Documentation
Subtract year from date change waiting period
Send Feedback
JScript Examples > JScript for Plans > Subtract year from date change waiting period

Glossary Item Box

Use this script to subtract one year from today's date: 

var today = DateTime.Today.AddYears(-1);

 

//changes the waiting period from 365 days to 90 days.

var hireDate = Event.Employee.DateOfHire;

if (hireDate < today) Event.Config.WaitingPeriod = 90;


 

©2024. All Rights Reserved.